how to get distinct value in a column dataframe in python

112

how to get distinct value in a column dataframe in python -

df.column.unique()

pandas distinct -

>gapminder['continent'].unique()
array(['Asia', 'Europe', 'Africa', 'Americas', 'Oceania'], dtype=object)

Comments

Submit
0 Comments